/**
 * 
 */
package com.gopay.common.domain.riskcontrol;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

import com.gopay.common.domain.BaseEntity;

/**
 * @RcAcctDefaultLimit.java
 * @author gaocl
 * @2017年5月15日 下午2:40:17  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name="RC_ACCT_DEFAULT_LIMIT")
public class RcAcctDefaultLimit extends BaseEntity{

    /**
     * 
     */
    private static final long serialVersionUID = -1501848614289973321L;
    
    @Id
    @SequenceGenerator(name="RC_ACCT_DEFAULT_LIMIT_ID_GENERATOR",allocationSize=1,initialValue=1, sequenceName="RC_ACCT_DEFAULT_LIMIT_SEQ")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="RC_ACCT_DEFAULT_LIMIT_ID_GENERATOR")
    private long id;
    
    @Column(name="ACCT_ID")
    private String acctId;
    
    @Column(name="DEFAULT_LIMIT_TYPE_NAME")
    private String defaultLimitTypeName;
    
    @Column(name="DEFAULT_LIMIT_TYPE_CODE")
    private String defaultLimitTypeCode;
    
    @Column(name="DEFAULT_LIMIT")
    private BigDecimal defaultLimit;
    
    @Column(name="LOCK_WAY")
    private String lockWay;
    
    @Column(name="DEFAULT_LIMIT_SOURCE")
    private String defaultLimitSource;
    
    @Column(name="CREATED_OPER_ID")
    private String createdOperId;

    @Column(name="CREATED_TS")
    private Date createdTs;
    
    @Column(name="LAST_UPD_OPER_ID")
    private String lastUpdOperId;

    @Column(name="LAST_UPD_TS")
    private Date lastUpdTs;
    
    @Version
    @Column(name = "VERSION")
    private Integer version;

    public long getId() {
        return id;
    }

    public String getAcctId() {
        return acctId;
    }

    public String getDefaultLimitTypeName() {
        return defaultLimitTypeName;
    }

    public String getDefaultLimitTypeCode() {
        return defaultLimitTypeCode;
    }

    public BigDecimal getDefaultLimit() {
        return defaultLimit;
    }

    public String getLockWay() {
        return lockWay;
    }

    public String getDefaultLimitSource() {
        return defaultLimitSource;
    }

    public String getCreatedOperId() {
        return createdOperId;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public String getLastUpdOperId() {
        return lastUpdOperId;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public Integer getVersion() {
        return version;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setAcctId(String acctId) {
        this.acctId = acctId;
    }

    public void setDefaultLimitTypeName(String defaultLimitTypeName) {
        this.defaultLimitTypeName = defaultLimitTypeName;
    }

    public void setDefaultLimitTypeCode(String defaultLimitTypeCode) {
        this.defaultLimitTypeCode = defaultLimitTypeCode;
    }

    public void setDefaultLimit(BigDecimal defaultLimit) {
        this.defaultLimit = defaultLimit;
    }

    public void setLockWay(String lockWay) {
        this.lockWay = lockWay;
    }

    public void setDefaultLimitSource(String defaultLimitSource) {
        this.defaultLimitSource = defaultLimitSource;
    }

    public void setCreatedOperId(String createdOperId) {
        this.createdOperId = createdOperId;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public void setLastUpdOperId(String lastUpdOperId) {
        this.lastUpdOperId = lastUpdOperId;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
    
    
    
}
